package com.yuexin.project.statistic.mealCount.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuexin.common.support.Convert;
import com.yuexin.project.statistic.mealCount.domain.MealCount;
import com.yuexin.project.statistic.mealCount.mapper.MealCountMapper;

/**
 * 人员报餐统计 服务层实现
 * 
 * @author yuexin
 * @date 2018-10-17
 */
@Service
public class MealCountServiceImpl implements IMealCountService 
{
	@Autowired
	private MealCountMapper mealCountMapper;

	/**
     * 查询人员报餐统计信息
     * 
     * @param countId 人员报餐统计ID
     * @return 人员报餐统计信息
     */
    @Override
	public MealCount selectMealCountById(Integer countId)
	{
	    return mealCountMapper.selectMealCountById(countId);
	}
	
	/**
     * 查询人员报餐统计列表
     * 
     * @param mealCount 人员报餐统计信息
     * @return 人员报餐统计集合
     */
	@Override
	public List<MealCount> selectMealCountList(MealCount mealCount)
	{
	    return mealCountMapper.selectMealCountList(mealCount);
	}
	
    /**
     * 新增人员报餐统计
     * 
     * @param mealCount 人员报餐统计信息
     * @return 结果
     */
	@Override
	public int insertMealCount(MealCount mealCount)
	{
	    return mealCountMapper.insertMealCount(mealCount);
	}
	
	/**
     * 修改人员报餐统计
     * 
     * @param mealCount 人员报餐统计信息
     * @return 结果
     */
	@Override
	public int updateMealCount(MealCount mealCount)
	{
	    return mealCountMapper.updateMealCount(mealCount);
	}

	/**
     * 删除人员报餐统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteMealCountByIds(String ids)
	{
		return mealCountMapper.deleteMealCountByIds(Convert.toStrArray(ids));
	}
	
}
